package com.iwinding.ladygg.modle.bean;

public class LocationInfo {

    public static final String HK_CODE = "852";// 香港
    public static final String MA_CODE = "853";// 澳门
    public static final String TW_CODE = "886";// 台湾

    public String latitude;
    public String longitude;
    public String altitude;
    public float accuracy;//获取精度信息

    public String address;//地址，如果option中设置isNeedAddress为false，则没有此结果，网络定位结果中会有地址信息，GPS定位不返回地址信息。

    public String country;//国家信息

    public String province;//省信息

    public String city;//城市信息

    public String district;//城区信息

    public String street;//街道信息

    public String streetNum;//街道门牌号信息

    public String cityCode;//城市编码

    public String adCode;//地区编码

    public String aoiName;//获取当前定位点的AOI信息

    public String buildingId;//获取当前室内定位的建筑物Id

    public String floor;//获取当前室内定位的楼层

    public int gpsAccuracyStatus;//获取GPS的当前状态


    public void clearData() {
        this.latitude = "";
        this.longitude = "";
        this.altitude = "";
        this.cityCode = "";
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("latitude :").append(latitude).append(" , longitude :")
                .append(longitude).append(" , altitude : ").append(altitude)
                .append(" , cityCode : ").append(cityCode);

        return builder.toString();
    }

}
